home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / doeo.swf / scripts / DefineButton2_53 / BUTTONCONDACTION on(rollOver).as
Text File  |  2013-04-24  |  662b  |  18 lines

  1. on(rollOver){
  2.    _root.kongregateStats.submit("doeocaught_easy",1);
  3.    _root.doeos = _root.doeos + 1;
  4.    _parent._parent.done = _parent._parent.done + 1;
  5.    if(_parent._parent.done == _parent._parent.doeo)
  6.    {
  7.       _root.score += 500;
  8.       _parent._parent.attachMovie("twenty","twenty" + _parent._parent.getNextHighestDepth(),_parent._parent.getNextHighestDepth(),{_x:_parent._x,_y:_parent._y - 20});
  9.    }
  10.    else
  11.    {
  12.       _root.score += 10;
  13.       _parent._parent.attachMovie("ten","ten" + _parent._parent.getNextHighestDepth(),_parent._parent.getNextHighestDepth(),{_x:_parent._x,_y:_parent._y - 20});
  14.    }
  15.    _parent.stop();
  16.    play();
  17. }
  18.